<!DOCTYPE html	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:p="http://primefaces.org/ui"
	template="/template/template_dialog.xhtml">
	<ui:define name="head">
		<title>#{request.getParameter('lineName')} 故障报告</title>
	</ui:define>
	<ui:define name="content">
	   <p:outputPanel rendered="#{!''.equals(faultCenterController.deviceId)}">
			<iframe id="iframePage" width="100%" frameborder="0" 
				src="#{faultCenterController.url}?#{faultCenterController.param}"></iframe>
	   </p:outputPanel>
		<p:panel header="动作分析" style="text-align: center;font-size:18px;"
				rendered="#{''.equals(faultCenterController.deviceId)}">
				<h:outputText value="无详细信息" style="font-size:16px"></h:outputText>
				<f:facet name="actions">
				     <p:commandButton rendered="#{faultCenterController.showBackButton}" style="float:left;font-size:16px;"
									icon="fa fa-chevron-circle-left" onclick="back();" value="返回"></p:commandButton>
				</f:facet>
		</p:panel>
	</ui:define>
	<ui:define name="contentend">
		<script>
			//设置高度
			function reinitIframe() {
				 var iframe = document.getElementById("iframePage");
				iframe.height = wrapperHeight-10;
			}
			function back(){
				if(parent &amp;&amp; parent.backFromFaultReport){
					parent.backFromFaultReport();
				}else{
					window.history.back();
				}
			}
		</script>
	</ui:define>
</ui:composition>